import request from '../../../utils/request';

export const menuData = query => {
    return request({
        url: '/api/upp/menu/doMain',
        method: 'post',
        params: query,
    });
};

/*新增菜单信息*/
export const doAdd = params => {
    return request({
        url: '/api/upp/menu/doAdd',
        method: 'post',
        data: params,
    });
};

/*修改菜单信息*/
export const doUpdate = params => {
    return request({
        url: '/api/upp/menu/doUpdate',
        method: 'post',
        data: params,
    });
};

/*删除菜单信息*/
export const doDelete = params => {
    return request({
        url: '/api/upp/menu/doDelete',
        method:'delete',
        params: params
    });
};

/*判断菜单是否存在*/
export const isNotexistsUppMenu = params => {
    return request({
        url: '/api/upp/menu/isNotexists',
        method: 'post',
        params: params,
    });
};
